package com.s4j.struts.biz.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="biz_li_combin")
public class BizLiCombin {
	private Long combinId;	
	private PatientDoc patient;
	private String tnb;
	private Integer tnb_ywzl;
	private String gxy;
	private String gxy_ywzl;
	private String other;
	
	@OneToOne  
    @JoinColumn(name="patientId",insertable=true,unique=true)
	public PatientDoc getPatient() {
		return patient;
	}

	public void setPatient(PatientDoc patient) {
		this.patient = patient;
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getCombinId() {
		return combinId;
	}

	public void setCombinId(Long combinId) {
		this.combinId = combinId;
	}

	public String getTnb() {
		return tnb;
	}

	public void setTnb(String tnb) {
		this.tnb = tnb;
	}

	public Integer getTnb_ywzl() {
		return tnb_ywzl;
	}

	public void setTnb_ywzl(Integer tnb_ywzl) {
		this.tnb_ywzl = tnb_ywzl;
	}

	public String getGxy() {
		return gxy;
	}

	public void setGxy(String gxy) {
		this.gxy = gxy;
	}

	public String getGxy_ywzl() {
		return gxy_ywzl;
	}

	public void setGxy_ywzl(String gxy_ywzl) {
		this.gxy_ywzl = gxy_ywzl;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}
	
	

}
